﻿using Luna小店.service;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Luna小店.生产工单
{
    public partial class Frm版型款式一览 : DevExpress.XtraEditors.XtraForm
    {
        public String STYLE_FIT_CD { get; set; }//版型CD
        public Frm版型款式一览()
        {
            InitializeComponent();
        }
        public Frm版型款式一览(String STYLE_FIT_CD)
        {
            this.STYLE_FIT_CD = STYLE_FIT_CD;
            InitializeComponent();
            this.gridView版型款式一览.GroupPanelText = this.STYLE_FIT_CD + "版型款式一览";
        }

        private void Refresh款式版型一览()
        {
            this.gridControl1.DataSource = StyleService.GetStyleByFitCd(this.STYLE_FIT_CD);
            this.gridControl1.Refresh();
        }

        private void simpleButton新建样衣款式_Click(object sender, EventArgs e)
        {
            new Frm创建样衣款式(this.STYLE_FIT_CD).ShowDialog();
        }

        private void Frm版型款式一览_Load(object sender, EventArgs e)
        {
            this.Refresh款式版型一览();
        }
    }
}
